﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="clearmessage.aspx.cs" Inherits="Finance_clearmessage" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
<title>采购统计</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/changerows.js"></script>
<script type="text/javascript" src="../js/rl.js"></script>
<script type="text/javascript">
function CheckAll(form) {
    for (var i=0;i<form.elements.length;i++) {
	    var e = form.elements[i];
	    if (e.name != 'chkall' && e.type=='checkbox')
		    e.checked = form.chkall.checked;
    }
}

 function AllPrintData(all,type,name,modul)
{
         window.open("DrawPrint3.aspx?type="+type+"&all="+all+"&name="+name+"&modul="+modul+"","","width=800px,height=650px,left=100px,top=30px,scrollbars=yes");
        return false;

}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="2%" height="1%">
                    <img alt="" src="../images/module.gif" width="20" height="22"/></td>
                <td >
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="81%" align="right"> <font color="red"> &nbsp;[ <a href="javascript:location.href=document.referrer;" ><font color="red">返回</font></a> ]</font>
        &nbsp;</td>
        </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" EmptyDataText="没有数据">
            <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
             
                <asp:BoundField HeaderText="仓库名称" DataField="WarehouseName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="采购时间" DataField="cdate" >
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField HeaderText="品牌" DataField="Brand" >
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField HeaderText="名称" DataField="ComoditiesName" >
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="Specifications" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="数量" DataField="ProcNum" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:TemplateField HeaderText="采购价(元)">
                    <ItemTemplate>
                        <asp:Label ID="ProcMoney" runat="server" Text='<%# Bind("ProcMoney","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="总金额(元)">
                    <ItemTemplate>
                        <asp:Label ID="tol" runat="server" Text='<%# Bind("tol","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
              <asp:BoundField HeaderText="单位" DataField="Units" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
               
                <asp:BoundField HeaderText="供货商" DataField="Supplier" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            <%-- <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <%-- <asp:LinkButton ID="lnkbtnLook" CssClass="lnkbtn" runat="server" ForeColor="Red" Enabled="false" CommandArgument='<%#Eval("Specifications")%>' OnClick="lnkbtnLook_Click" >打印</asp:LinkButton>--%>
                   <%-- </ItemTemplate>--%>
             <%--   <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>--%>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        
         <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
           <td></td>
                
            </tr>
            <tr>
                <td></td>
                <td align="right">
                    </td>
                <td style="width: 14%; text-align: right;">
                    总计：<asp:Label ID="lbltotal" runat="server" Text="0" ForeColor="Red"></asp:Label>元</td>
            </tr>
            <tr>
                <td style="width: 160px">
                </td>
                <td align="right">
                    <uc1:PageNavigator ID="PageNavigator1" DataId="GvData" ShowType="Num" ConnectionString="connstr"
                        PageSize="20" runat="server" />
                </td>
                <td align="right" style="height: 5px">
                    &nbsp; &nbsp;&nbsp;
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="Hidid" runat="server" />
       
        <asp:HiddenField ID="Hidware" runat="server" />
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>
